how to open a file with open function in c